package com.raycloud.manager.impl;

import java.util.List;

import com.raycloud.dao.UserDao;
import com.raycloud.domain.User;
import com.raycloud.manager.UserMgr;

public class UserMgrImpl implements UserMgr{
	private UserDao userDao;
	
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	
	public void insertUser(User user) {
		userDao.insertUser(user);
	}

	public User getUser(String email, String password) {
		return userDao.getUser(email, password);
	}

	public User getUserById(long id) {
		return userDao.getUserById(id);
	}

	public List<User> queryTopNUsers(int limitCount, long id) {
		return userDao.queryTopNUsers(limitCount, id);
	}

}
